Skip to content

export Function

Poll ​

The user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only.

Constructor ​

ts
ReplyButton.Poll( text, type )
ParameterTypeDescription
textstringLabel text on the button.
type?"regular" | "quiz"If 'quiz' is passed, the user will be allowed to create only polls in the quiz mode. If 'regular' is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.

Return: ReplyButtonPayload